package com.cuit.zuke.order.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("address")
public class Address {

    /**
     * id
     */
    @TableField
    private Integer id;

    /**
     * 省code
     */
    @TableField(value = "province_code")
    private Long provinceCode;

    /**
     * 市code
     */
    @TableField(value = "city_code")
    private Long cityCode;

    /**
     * 区code
     */
    @TableField(value = "loc_code")
    private Long locCode;

    /**
     * 详细地址
     */
    @TableField(value = "detailed_address")
    private String detailedAddress;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;


    @TableLogic
    @TableField(value = "is_deleted")
    private Byte isDelete;
}
